import request from './apiConfing'

export async function userLogin(user) {
  return request({
    method: 'post',
    url: '/auth/userlogin',
    data: user
  })
}

export async function updatePass({oldpass, newpass}) {
  console.log(oldpass, newpass)
  return request({
    method: 'post',
    url: '/auth/updatepass',
    data: {
      oldpass,
      newpass
    }
  })
}

